package test5;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

@Target(value = {
        ElementType.TYPE,
        ElementType.FIELD,
        ElementType.METHOD,
        ElementType.PARAMETER,
})
public @interface MyAnnotation {
}

@MyAnnotation
@interface Annotation{
    String name() default "xsj";
}

@MyAnnotation
class A {
    @MyAnnotation
    private int a;
    @MyAnnotation
    public static void main(@MyAnnotation String[] args) {
        System.out.println("Hello World!");
    }
}
